package com.sky.mapper;

import com.sky.entity.SetmealDish;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * @author : 黑渊白花
 * @date : 2025/8/9 16:43
 */
@Mapper
public interface SetmealDishMapper {


    void insertBatch(List<SetmealDish> setmealDishes);

    void deleteByIds(List<Long> ids);

    @Select("select * from setmeal_dish where setmeal_id = #{id}")
    List<SetmealDish> getListBySetmealId(Long id);

    @Delete("delete from setmeal_dish where setmeal_id = #{id}")
    void deleteById(Long id);

    Integer countStatusBySetmealId(Long id);
}
